package cn.endeavour.order.service;


import cn.endeavour.basic.service.IBaseService;
import cn.endeavour.basic.util.PageList;
import cn.endeavour.order.domain.ProductOrder;
import cn.endeavour.order.domain.ProductOrder;
import cn.endeavour.order.query.ProductOrderQuery;
import cn.endeavour.user.domain.User;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 产品订单明细
 */
public interface IProductOrderService extends IBaseService<ProductOrder> {

    /**
     * 后端用户查询订单
     * @param productOrderQuery
     * @param request
     * @return
     */
    PageList<ProductOrder> queryAdminOrder(ProductOrderQuery productOrderQuery, HttpServletRequest request);

    /**
     * 前台用户查询订单
     * @param productOrderQuery
     * @param request
     * @return
     */
    PageList<ProductOrder> queryUserOrder(ProductOrderQuery productOrderQuery, HttpServletRequest request);
    /**
     *提交订单
     * @param params
     * @param request
     * @return
     */
    String productOrderSubmit(Map<String, Object> params, HttpServletRequest request);

    /**
     * 修改服务订单订单状态
     * 修改支付单状态
     * @param orderId
     */
    void cancelOrder(Long orderId);

}
